class _game_condition:
    test = None #test returns false if condition not met
    def __init__(self, game):
        self.game = game
        self.game_logic = game.game_logic

class deathmatch(_game_condition):
    def __init__(self, game):
        _game_condition.__init__(self, game)
    def test(self):
        most_kills = 0
        for p in self.game.players:
            if self.game.players[p].kills > most_kills:
                most_kills = self.game.players[p].kills
        if most_kills == self.game.config.max_kills:
            return True
        return False
